<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
	<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="Header.jsp"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>New User Detail</title>
</head>
<body>
<jsp:include page="AdminNav.jsp"/>
	<h1>New User Detail</h1>
	<form:form method="POST" commandName="UserDetail"
		action="${pageContext.request.contextPath}/userdetail/create.html">
		<table>
			<tbody>
				<tr>
					<td>Employee :</td>
					
					<td>
					<select name="employeeId.employeeId" class="form-control">
							<c:forEach items="${empList}"  var="V">
								<option value="${V.employeeId}" >${V.name} </option>
								</c:forEach>
					</select>
					</td>
					<td><form:errors path="employeeId.employeeId" cssStyle="color: red;" /></td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><form:input path="password" class="form-control" /></td>
					<td><form:errors path="password" cssStyle="color: red;" /></td>
				</tr>
			
				<tr>
					
					<td></td>
					<td class="pull-right"><input type="submit" value="Create" class="btn btn-primary"/></td>
					<td></td>
				</tr>
			</tbody>
		</table>
	</form:form>
	<jsp:include page="footer.jsp"/>
</body>
</html>